package com.bicon.botu.mall.goods.processor.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.bicon.botu.mall.goods.processor.service.ProductSyncService;
import com.bicon.botu.mall.goods.entity.Product;
import com.bicon.botu.mall.goods.entity.ProductRepertory;
import com.bicon.botu.mall.goods.mapper.ProductMapper;
import com.bicon.botu.mall.goods.mapper.ProductRepertoryMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * <p> 产品信息同步
 * </p>
 *
 * @author tao.zeng.
 * @since 2018/3/15.
 */
@Slf4j
@Service
public class ProductSyncServiceImpl implements ProductSyncService {

    @Autowired
    private ProductMapper productMapper;

    @Autowired
    private ProductRepertoryMapper productRepertoryMapper;

    @Override
    public void syncProduct(String where) {
        Wrapper wrapper = new EntityWrapper<>().where(where);
        List list = productMapper.selectList(wrapper);

    }

    @Override
    public void syncProductRepertory(String where) {
        Wrapper wrapper = new EntityWrapper<>().where(where);
        List list = productRepertoryMapper.selectList(wrapper);

    }

    @Override
    public void syncProduct(Product product) {

    }

    @Override
    public void syncProductRepertory(ProductRepertory repertory) {

    }
}
